/*
 * FunctionParameterAst.h
 *
 *  Created on: 19 Nov 2010
 *      Author: kn308
 */

#ifndef FUNCTIONPARAMETERAST_H_
#define FUNCTIONPARAMETERAST_H_

#include <MAlice/Ast/TypeAst.h>

namespace MAlice
{

class FunctionParameterAst: public MAlice::Ast
{
private:
	TypeAst* mType;
	string mName;

public:
	FunctionParameterAst(location loc, TypeAst* type, const string& name);
	virtual ~FunctionParameterAst();
	virtual llvm::Value* generate();

	inline TypeAst* getType()
	{
		return mType;
	}

	inline const string &getName()
	{
		return mName;
	}
};

}

#endif /* FUNCTIONPARAMETERAST_H_ */
